package com.leonzhangxf.ioc.bean;

import java.io.IOException;
import java.io.OutputStream;

/**
 * A test bean interface for spring ioc.
 *
 * @author leonzhangxf
 */
public interface HelloWorldService {

    /**
     * Write hello world to target output stream.
     *
     * @param outputStream the output stream to be write.
     * @throws IOException throw I/O exception when write perform wrong.
     */
    void helloWorld(OutputStream outputStream) throws IOException;

    /**
     * EnableHello world implementation bean's message.
     */
    void helloWorld();
}
